/**
 * 
 */
package one.chchy.demo.sprintsecurity.config;

import one.chchy.demo.sprintsecurity.MD5PasswordEncoder;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
import org.springframework.security.crypto.password.PasswordEncoder;


/**
 * @author zhailiang
 *
 */
@Configuration
public class SecurityCoreConfig {

    @Bean
    public PasswordEncoder passwordEncoder(){
//        return new BCryptPasswordEncoder();
        return new MD5PasswordEncoder();
    }
}
